package gestion.horarios.model.jpa.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the vigenciaplancurricular database table.
 * 
 */
@Entity
@Table(name="vigenciaplancurricular")
public class VigenciaPlanCurricular implements Serializable {
	private static final long serialVersionUID = 1L;
	private int vigenciaPlanCurricularId;
	private byte nivel;
	private Carrera carrera;
	private PlanCurricular plancurricular;
	private CicloAcademico cicloacademico;

    public VigenciaPlanCurricular() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	public int getVigenciaPlanCurricularId() {
		return this.vigenciaPlanCurricularId;
	}

	public void setVigenciaPlanCurricularId(int vigenciaPlanCurricularId) {
		this.vigenciaPlanCurricularId = vigenciaPlanCurricularId;
	}


	public byte getNivel() {
		return this.nivel;
	}

	public void setNivel(byte nivel) {
		this.nivel = nivel;
	}


	//bi-directional many-to-one association to Carrera
    @ManyToOne
	@JoinColumn(name="CarreraId", nullable=false)
	public Carrera getCarrera() {
		return this.carrera;
	}

	public void setCarrera(Carrera carrera) {
		this.carrera = carrera;
	}
	

	//bi-directional many-to-one association to PlanCurricular
    @ManyToOne
	@JoinColumn(name="PlanCurricularId", nullable=false)
	public PlanCurricular getPlancurricular() {
		return this.plancurricular;
	}

	public void setPlancurricular(PlanCurricular plancurricular) {
		this.plancurricular = plancurricular;
	}
	

	//bi-directional many-to-one association to CicloacAdemico
    @ManyToOne
	@JoinColumn(name="CicloAcademicoId", nullable=false)
	public CicloAcademico getCicloacademico() {
		return this.cicloacademico;
	}

	public void setCicloacademico(CicloAcademico cicloacademico) {
		this.cicloacademico = cicloacademico;
	}
	
}